<?php
require("conexao.php");
require_once 'ti.php';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SGF</title>
<link rel="stylesheet" type="text/css" href="resources/css/estilo.css" />
<!-- GLOBAL -->
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/jquery-1.6.2.js"></script>

<!-- VALIDACAO -->
<script src="js/validacao.js" type="text/javascript"></script>
<script src="js/validar-cadastro.js" type="text/javascript"></script>

<!-- SLIDESHOW -->
<script src="js/cycle.js"></script>




</head>

<body>
<div id="fundo">

<div id="tela">

<div id="cabecalho">

<?php
    require("cabecalho3.php");
?>
</div>


<div id="link2">
<?php
    if (isset($_GET["link"])){
	$link = $_GET["link"];
	}else{
	$link = "";
	}
	
	$pag[1] = "index.php";
	$pag[2] = "principal.php";
	$pag[3] = "login_cli.php";
	$pag[4] = "frm_cliente.php";
	$pag[5] = "home2.php";
	$pag[6] = "";
	$pag[7] = "";
	$pag[8] = "";
	$pag[9] = "";
	$pag[10] = "";
	$pag[11] = "";
	$pag[12] = "";
	$pag[13] = "";
	$pag[14] = "";
	$pag[15] = "";
	$pag[16] = "";
	$pag[17] = "";
	$pag[18] = "";
	
	if(!empty($link))
	{
	if (file_exists($pag[$link]))
	{
	require($pag[$link]);
	}
	else
	{
	require("home2.php");
	}
	}
	else 
	{
	require("home2.php");
	}
	
?>   

</div>



</div>
</div>
</body>
</html>
